package first.forHuaWei.bfs;

/**
 * @ClassName LC104
 * @description:
 * @author: 荣燊
 * @create: 2021-09-07 15:21
 **/
public class LC104 {

    public static int maxDepth(TreeNode root) {
        if (root == null) {
            return 0;
        }
        return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));
    }
}
